<?php
class log_entry extends Custom_Enum {
	public $message;
	public $type;
	
	public function __construct($message, $type) {
		$this->message = $message;
		if($type == "success" || $type == "error"){
			$this->type = $type;
		} else {
			$this->message = "Fatal error: False log type is given!";
			$this->type = "error";
		}
		
	}
}
?>